/*    */ package server;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.HashSet;
/*    */ import java.util.Map;
/*    */ import java.util.Set;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class StructItemOption
/*    */ {
/* 17 */   public static final String[] types = new String[] { "incSTR", "incDEX", "incINT", "incLUK", "incACC", "incEVA", "incPAD", "incMAD", "incPDD", "incMDD", "incMHP", "incMMP", "incSTRr", "incDEXr", "incINTr", "incLUKr", "incACCr", "incEVAr", "incPADr", "incMADr", "incPDDr", "incMDDr", "incMHPr", "incMMPr", "incSTRlv", "incDEXlv", "incINTlv", "incLUKlv", "incPADlv", "incMADlv", "incSpeed", "incJump", "incCr", "incDAMr", "incTerR", "incAsrR", "incEXPr", "incMaxDamage", "HP", "MP", "RecoveryHP", "RecoveryMP", "level", "prop", "time", "ignoreTargetDEF", "ignoreDAM", "incAllskill", "ignoreDAMr", "RecoveryUP", "incCriticaldamageMin", "incCriticaldamageMax", "DAMreflect", "mpconReduce", "reduceCooltime", "incMesoProp", "incRewardProp", "boss", "attackType", "bufftimeR", "incMHPlv" };
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 26 */   public final Map<String, Integer> data = new HashMap<>();
/*    */   
/*    */   public int optionType;
/*    */   public int reqLevel;
/*    */   
/*    */   public int get(String type) {
/* 32 */     return (this.data.get(type) != null) ? ((Integer)this.data.get(type)).intValue() : 0;
/*    */   }
/*    */   public int opID; public String face; public String opString;
/*    */   
/*    */   public String toString() {
/* 37 */     Set<String> op = new HashSet<>();
/* 38 */     for (String type : types) {
/* 39 */       if (get(type) > 0) {
/* 40 */         op.add(type);
/*    */       }
/*    */     } 
/* 43 */     String ret = this.opString;
/* 44 */     for (String s : op) {
/* 45 */       ret = ret.replace("#" + s, String.valueOf(get(s)));
/*    */     }
/*    */     
/* 48 */     return ret;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\StructItemOption.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */